package com.liwy3.mybaits.srcDemo;

import org.apache.ibatis.mapping.DatabaseIdProvider;
import org.springframework.stereotype.Component;

import javax.sql.DataSource;
import java.sql.SQLException;
import java.util.Properties;

/**
 * Copyright © 元气森林（北京）食品科技集团有限公司. All rights reserved.
 *
 * @Description:
 * @author: Crazy4J
 * @date: 2022年02月14日 15:53
 * @version: V1.0
 */
@Component
public class MyDatabaseIdProvider implements DatabaseIdProvider {
    @Override
    public String getDatabaseId(DataSource dataSource) throws SQLException {
        System.out.println("=============getDatabaseId=================");
        return null;
    }


    public void setProperties(Properties p) {
        System.out.println("=============setProperties=================");
    }
}
